package com.bert.controller;

import ch.qos.logback.classic.AsyncAppender;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/check")
public class CheckController {

    @GetMapping("/logbackAsync")
    public Boolean checkLog4j2Async(){
        return log instanceof AsyncAppender;
    }

}
